Pod::Spec.new do |s|
  s.name         = 'gFramework'
  s.version      = '1.0.0'
  s.summary      = 'test framework'
  s.description  = 'test framework description...'
  s.homepage     = 'https://code.google.com/'
  s.license      =  'MIT'
  s.source       =  { :git => 'https://github.com/rivenn/gframework.git', :tag => '1.0.0' }
  s.authors      = [ 'Lirong Yuan' ]
  s.requires_arc = false
  s.prepare_command = <<-CMD
                        pwd
                        ls -al
                        echo 'Framework [M] .... built'
                      CMD
  s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '\"$(PODS_ROOT)/gframework\"/**' }

  s.subspec 'FrameworkA' do |sa|
#    sa.source_files = [ 'FrameworkA.framework/Headers' ]
    sa.preserve_paths = [ 'libFrameworkAB.a' ]
#    sa.frameworks = ['GooglePlus']
#    sa.vendored_libraries = [ 'libFrameworkAB.a' ]
#    sa.libraries = ['FrameworkAB']
#    sa.requires_arc = false
    sa.prepare_command = <<-CMD
                          pwd
                          echo 'Framework [A] .... built'
                        CMD
  end

  s.subspec 'FrameworkC' do |sc|
    sc.source_files = [ 'FrameworkC.framework/Headers' ]
#    sc.preserve_paths = [ 'libFrameworkBC.a' ]
#    sc.frameworks = ['FrameworkC']
#    sc.vendored_libraries = [ 'libFrameworkBC.a' ]
    sc.requires_arc = false
    sc.prepare_command = <<-CMD
                          pwd
                          echo 'Framework [C] .... built'
                        CMD
  end
end

#    s.resources    = ['google-plus-ios-sdk-1.7.1/GooglePlus.bundle']
#    sa.vendored_frameworks = [ "google-plus-ios-sdk-1.7.1/GooglePlus.framework" ]
#    sa.frameworks   = [ 'GooglePlus' ]
#    sc.dependency 'GooglePlus/GPPOpenSource'
#
#
